home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2661 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: ecf2.puc.edu!bivey
  2. From: bivey@ecf2.puc.edu (Bruce Ivey)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: H and L files
  5. Date: 19 Jan 1996 00:13:35 GMT
  6. Organization: CRL Dialup Internet Access
  7. Message-ID: <4dmnnf$pft@nntp.crl.com>
  8. References: <Pine.SOL.3.91.960117225206.12395C-100000@eesun1>
  9. NNTP-Posting-Host: ecf2.puc.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Sanjay Joshi (joshi@eesun1.tamu.edu) wrote:
  13. : Hi!
  14. : Can anybody tell me the difference between Library and Header files?
  15.  
  16. : Thanks
  17.  
  18. : Sanjay
  19.  
  20. Header files are ASCII source files containing things like constants
  21. (#define or const), function prototypes, and so on.  They can be supplied
  22. by the system (#include <stdio.h>) or by you or your programming
  23. partners (#include "employee.h").  Usually each header file you write
  24. (which contains interface information) corresponds to a .c file with the 
  25. implementation.
  26.  
  27. Library files are pre-compiled routines which can be linked directly into your
  28. program.  If you find you are often using the same .h/.c files and they
  29. don't change often, they can be compiled into library files of your own.
  30.  
  31.  
  32. -----------------------------------------------------------------------------
  33. Bruce Ivey         Dept of Physics & Computer Science   Pacific Union College
  34. Angwin, CA 94508            bivey@puc.edu                      (707) 965-7269
  35. =============================================================================
  36.